
export default {
  getUserMenu(param){
    console.log('mock___menu:');
    console.log(param);
    return {
      code: 200,
      message: '',
      data: [
        {id: '1',url:'sys',name:'系统管理',icon:'el-icon-setting',desc:'',children:[
            {id: '2',url:'/menu',name:'菜单管理'},
            {id: '3',url:'/user',name:'用户管理'},
            {id: '4',url:'/role',name:'角色管理'},
            {id: '5',url:'/log',name:'日志管理'},
            {id: '15',url:'/dict',name:'字典管理'}
          ]},
        {id: '6',url:'plugins',name:'组件测试',icon:'el-icon-odometer',desc:'',children:[
            {id: '7',url:'/map',name:'百度地图',desc:''},
            {id: '8',url:'/echarts',name:'Echarts',desc:''}
          ]},
        {id: '9',url:'element',name:'Element',icon:'el-icon-eleme',desc:'',children:[
            {id: '10',url:'/icon',name:'icon',desc:''}
          ]},
        {id: '12',url:'data-manage',name:'数据管理',icon:'el-icon-s-operation',desc:'',children:[
            // {id: '15',url:'/dict',name:'数据字典'}
          ]},
        {id: '14',url:'test',name:'测试页面',icon:'el-icon-question',desc:'',children:[
            {id: '19',url:'/test1',name:'测试'},
            {id: '20',url:'/test2',name:'测试'},
            {id: '21',url:'/test3',name:'测试'}
          ]},
        {id: '18',url:'project',name:'项目相关',icon:'el-icon-notebook-2',desc:'',children:[
            {id: '22',url:'/info',name:'项目说明'},
            {id: '13',url:'/reference',name:'参考资料',icon:'el-icon-document-copy'}
          ]}
      ]
    }
  },
  getMenuList(param){
    console.log('mock___menuList:');
    console.log(param);
    let jsonParam = JSON.parse(param.body);
    return {
      code: 200,
      message: '',
      data: {
        total: 3,
        list: [
          {id: '1',url:'sys',name:'系统管理',icon:'el-icon-setting',desc:'',children:[
              {id: '2',url:'/menu',name:'菜单管理'},
              {id: '3',url:'/user',name:'用户管理'},
              {id: '4',url:'/role',name:'角色管理'},
              {id: '5',url:'/log',name:'日志管理'}
            ]},
          {id: '6',url:'plugins',name:'组件测试',icon:'el-icon-odometer',desc:'',children:[
              {id: '7',url:'/map',name:'百度地图',desc:''},
              {id: '8',url:'/echarts',name:'Echarts',desc:''}
            ]},
          {id: '9',url:'element',name:'Element',icon:'el-icon-eleme',desc:'',children:[
              {id: '10',url:'/icon',name:'icon',desc:''}
            ]},
          {id: '12',url:'data-manage',name:'数据管理',icon:'el-icon-s-operation',desc:'',children:[
              {id: '15',url:'/dict',name:'数据字典'}
            ]},
          {id: '14',url:'test',name:'测试页面',icon:'el-icon-question',desc:'',children:[
              {id: '19',url:'/test1',name:'测试'},
              {id: '20',url:'/test2',name:'测试'},
              {id: '21',url:'/test3',name:'测试'}
            ]},
          {id: '18',url:'project',name:'项目相关',icon:'el-icon-notebook-2',desc:'',children:[
              {id: '22',url:'/info',name:'项目说明'},
              {id: '13',url:'/reference',name:'参考资料',icon:'el-icon-document-copy'}
            ]}
        ],
        pageSize: jsonParam.pageSize,
        page: jsonParam.page
      }
    }
  }
}
